package top.melody.ecommerce.platform.api.domain.goods;

import java.io.Serializable;

import top.melody.ecommerce.common.util.reflect.ReflectUtil;

import java.math.BigDecimal;
import java.util.Date;


/**
 * @author: melody
 * @groupId:rd
 * @createdate:2016-10-18
 * @mail: blentle.huan.ren@gmail.com
 * @description:
 * @since: 1.0
 */
public class GoodsInfo implements Serializable {

    /* 商品ID */
    private Integer goodsId;
    /* 商品名 */
    private String goodsName;
    /* 商品简称 */
    private String goodsMiniName;
    /* 商品条形码 */
    private String goodsBarcode;

    private String goodsBrand;
    /* 商品分类ID，关联GOODS_CATEGORY表主键 */
    private Integer categoryId;
    /* 商品单位 */
    private String goodsUnit;
    /* 商品规格 */
    private String goodsSpec;
    /* 商品状态：入库:DEF,上架：ON,下架：OFF */
    private String goodsStatus;
    /* 商品图片 */
    private String goodsImg;
    /* 商品市场价格 */
    private BigDecimal goodsPrice;
    /* 商品在本平台上的价格 */
    private BigDecimal platformPrice;
    /* 商品所属生产者 */
    private Integer producerId;
    /* 商品描述 */
    private String goodsDesc;
    /* 商品简介 */
    private String goodsSummary;
    /* 有效：VALID;无效:INVALID */
    private String validStatus;
    /* 已删除：Y;未删除：N */
    private String removeStatus;
    /* 创建时间 */
    private Date createDate;
    /* 最近更新时间 */
    private Date updateDate;

    public GoodsInfo() {

    }

    public GoodsInfo(Integer goodsId, String goodsName, String goodsMiniName, String goodsBarcode, String goodsBrand, Integer categoryId, String goodsUnit, String goodsSpec, String goodsStatus, String goodsImg, BigDecimal goodsPrice, BigDecimal platformPrice, Integer producerId, String goodsDesc, String goodsSummary, String validStatus, String removeStatus, Date createDate, Date updateDate)

    {
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsMiniName = goodsMiniName;
        this.goodsBarcode = goodsBarcode;
        this.goodsBrand = goodsBrand;
        this.categoryId = categoryId;
        this.goodsUnit = goodsUnit;
        this.goodsSpec = goodsSpec;
        this.goodsStatus = goodsStatus;
        this.goodsImg = goodsImg;
        this.goodsPrice = goodsPrice;
        this.platformPrice = platformPrice;
        this.producerId = producerId;
        this.goodsDesc = goodsDesc;
        this.goodsSummary = goodsSummary;
        this.validStatus = validStatus;
        this.removeStatus = removeStatus;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsMiniName() {
        return goodsMiniName;
    }

    public void setGoodsMiniName(String goodsMiniName) {
        this.goodsMiniName = goodsMiniName;
    }

    public String getGoodsBarcode() {
        return goodsBarcode;
    }

    public void setGoodsBarcode(String goodsBarcode) {
        this.goodsBarcode = goodsBarcode;
    }

    public String getGoodsBrand() {
        return goodsBrand;
    }

    public void setGoodsBrand(String goodsBrand) {
        this.goodsBrand = goodsBrand;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public String getGoodsSpec() {
        return goodsSpec;
    }

    public void setGoodsSpec(String goodsSpec) {
        this.goodsSpec = goodsSpec;
    }

    public String getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(String goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getPlatformPrice() {
        return platformPrice;
    }

    public void setPlatformPrice(BigDecimal platformPrice) {
        this.platformPrice = platformPrice;
    }

    public Integer getProducerId() {
        return producerId;
    }

    public void setProducerId(Integer producerId) {
        this.producerId = producerId;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsSummary() {
        return goodsSummary;
    }

    public void setGoodsSummary(String goodsSummary) {
        this.goodsSummary = goodsSummary;
    }

    public String getValidStatus() {
        return validStatus;
    }

    public void setValidStatus(String validStatus) {
        this.validStatus = validStatus;
    }

    public String getRemoveStatus() {
        return removeStatus;
    }

    public void setRemoveStatus(String removeStatus) {
        this.removeStatus = removeStatus;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return ReflectUtil.fieldsToString(this);
    }
}
